import dotenv from 'dotenv'

const currentEnv = process.env.NODE_ENV || 'development'

dotenv.config({ path: '.env' })
dotenv.config({ path: `.env.${currentEnv}` })

const IS_DEV: boolean = process.env.NODE_ENV === 'development'
const PORT: number =  process.env.PORT ? Number(process.env.port) : 3000
const JWT_SECRET: string = process.env.JWT_SECRET || 'your-secret-beer!'

export { IS_DEV, PORT, JWT_SECRET }
